/**
 *  @FileName: Employee.java
 *  @Last Modified Date: CharlW 2016.3.13
 *  @Description: Employee类有四个成员变量：name、age、designation和salary
 */
 
import java.io.*;

public class Employee {
	String name;
	int age;
	String designation;
	double salary;
	
	/* Employee 类的构造器 */
	public Employee(String name) {
		this.name = name;
	}
	
	/* 设置 age 的值 */
	public void empAge(int empAge) {
		age = empAge;
	}
	
	/* 设置 designation 的值 */
	public void empDesignation(String empDesig) {
		designation = empDesig;
	}
	
	/* 设置 salary 的值 */
	public void empSalary(double empSalary) {
		salary = empSalary;
	}
	
	/* 打印信息 */
	public void printEmployee() {
		System.out.println("Name: " + name);
		System.out.println("Age: " + age);
		System.out.println("Designation:" + designation);
		System.out.println("Salary:" + salary);
	}
}